package com.hmall.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.user.pojo.Address;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AddressMapper extends BaseMapper<Address> {


    @Select("select * from tb_address where user_id = #{userId}")
    List<Address> getAddressByUserId(@Param("userId") Long userId);
}
